# 初始化
from test.service_proxy.AIFactory import AIFactory

factory = AIFactory()

# 大模型对话
session = factory.create_conversation("gpt-4")
response = session.send_message("请解释机器学习的基本概念")
print(response)

# 图片生成
image_url = factory.image_gen.generate_with_dalle("一只可爱的猫咪在花园里玩耍")

# 语音合成
audio_data = factory.voice_model.text_to_speech("你好，这是一个语音合成测试")

# 批量处理
prompts = ["日出风景", "城市夜景", "山水画"]
images = factory.batch_process_images(prompts)